# $Id: PKGBUILD 158727 2012-05-08 13:54:05Z andrea $
# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=libvncserver
pkgver=0.9.9
pkgrel=1
pkgdesc="A cross-platform C libraries that allow you to easily implement VNC server"
arch=('i686' 'x86_64')
url="http://libvncserver.sourceforge.net/"
license=('GPL')
depends=('libjpeg' 'gnutls' 'libgcrypt' 'openssl')
options=('!libtool')
source=("http://downloads.sourceforge.net/${pkgname}/LibVNCServer-${pkgver}.tar.gz")
md5sums=('70422169b122765693d2a294d13e3714')

build() {
  cd "${srcdir}/LibVNCServer-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/LibVNCServer-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
